package bma.common.langutil.ai.stack;

public abstract class AIStackROOT<RESP_TYPE> extends AIStackAbstract<RESP_TYPE> {

	@Override
	public boolean success(RESP_TYPE result) {
		return end(result, null);
	}

	@Override
	public boolean failure(Throwable t) {
		return end(null, t);
	}

	@Override
	public AIStack<?> getParent() {
		return null;
	}

	public abstract boolean end(RESP_TYPE result, Throwable t);

}
